package com.project.hqshorttaxi.dto;

import java.io.Serializable;

public class BaseParam implements Serializable {

    private static final long serialVersionUID = 1L;

    Integer id;
    /**
     * 当前页码
     */
    Integer pageNum;
    /**
     * 每页数量
     */
    Integer pageSize;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPageNum() {
        return pageNum == null ? 1 : pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
